package cn.rkylin.oms.aftersale.sysrefund.dao.impl;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

import cn.rkylin.core.IDataBaseFactory;
import cn.rkylin.oms.aftersale.sysrefund.dao.ISysRefundSkuDAO;
import cn.rkylin.oms.aftersale.sysrefund.domain.SysRefundSku;

/**
 * 类名:SysRefundSkuDAOImpl <br/>
 * 作用: 系统退款单明细. <br/>
 * 创建原因:	 系统退款单明细. <br/>
 * 创建时间:     2017年10月26日 下午4:22:13 <br/>
 * @author   zhanghao
 * @version  v1.0 
 */
@Repository
public class SysRefundSkuDAOImpl implements ISysRefundSkuDAO {
    @Autowired
    IDataBaseFactory dao;
    
    private String STATEMENT_UPDATE_BY_REFUNDID = "updateByRefundID";
    private String STATEMENT_INSERT_BY_ORDERSKU = "insertByOrderSku";
    private String STATEMENT_INSERT_SYSREFUND_SKU = "insertSysRefundSku";

    /**
     * @see cn.rkylin.oms.aftersale.sysrefund.dao.ISysRefundSkuDAO#deleteByPrimaryKey(java.lang.String)
     */
    @Override
    public int deleteByPrimaryKey(String refundSkuId) {

        return 0;
    }

    /**
     * @see cn.rkylin.oms.aftersale.sysrefund.dao.ISysRefundSkuDAO#insert(cn.rkylin.oms.aftersale.sysrefund.domain.SysRefundSku)
     */
    @Override
    public int insert(SysRefundSku record) throws Exception {
        int returnValue = dao.insert(STATEMENT_INSERT_SYSREFUND_SKU, record);
        return returnValue;
    }

    /**
     * @see cn.rkylin.oms.aftersale.sysrefund.dao.ISysRefundSkuDAO#insertSelective(cn.rkylin.oms.aftersale.sysrefund.domain.SysRefundSku)
     */
    @Override
    public int insertSelective(SysRefundSku record) throws Exception {

        return 0;
    }

    /**
     * @see cn.rkylin.oms.aftersale.sysrefund.dao.ISysRefundSkuDAO#selectByPrimaryKey(java.lang.String)
     */
    @Override
    public SysRefundSku selectByPrimaryKey(String refundSkuId) {

        return null;
    }

    /**
     * @see cn.rkylin.oms.aftersale.sysrefund.dao.ISysRefundSkuDAO#updateByPrimaryKeySelective(cn.rkylin.oms.aftersale.sysrefund.domain.SysRefundSku)
     */
    @Override
    public int updateByPrimaryKeySelective(SysRefundSku record) {

        return 0;
    }

    /**
     * @see cn.rkylin.oms.aftersale.sysrefund.dao.ISysRefundSkuDAO#updateByPrimaryKey(cn.rkylin.oms.aftersale.sysrefund.domain.SysRefundSku)
     */
    @Override
    public int updateByPrimaryKey(SysRefundSku record) {

        return 0;
    }

    /**
     * @see cn.rkylin.oms.aftersale.sysrefund.dao.ISysRefundSkuDAO#insertBatch(java.util.List)
     */
    @Override
    public int insertBatch(List<SysRefundSku> recordList) throws Exception {

        return 0;
    }

    /**
     * @see cn.rkylin.oms.aftersale.sysrefund.dao.ISysRefundSkuDAO#insert(java.util.Map)
     */
    @Override
    public void insert(Map param) throws Exception {
        dao.insert(STATEMENT_INSERT_BY_ORDERSKU, param);

    }

    /**
     * @throws Exception 
     * @see cn.rkylin.oms.aftersale.sysrefund.dao.ISysRefundSkuDAO#updateByRefundIdSelective(cn.rkylin.oms.aftersale.sysrefund.domain.SysRefundSku)
     */
    @Override
    public void updateByRefundIdSelective(SysRefundSku record) throws Exception {
        dao.update(STATEMENT_UPDATE_BY_REFUNDID, record);

    }

}

